package com.tiancheng.trade.settlement.vo.settlement.admin.res;

import lombok.Data;

import java.math.BigDecimal;
import java.time.LocalDate;

/**
 * @Auther: liudong
 * @Date: 2024/4/27 16:57
 * @Param ${tags}
 * @Description:
 */
@Data
public class OrderSourceResVO {

    /**
     * 订单来源
     */
    private String orderSource;

    /**
     * 城市
     */
    private String cityName;

    /**
     * 子订单号
     */
    private String subOrderId;

    /**
     * 结算周期
     */
    private String verifiedTime;

    /**
     * 组织名称
     */
    private String organizationName;

    /**
     * 商户编号
     */
    private String merchantCode;

    /**
     * 商户名称
     */
    private String merchantName;

    /**
     * 合作模式
     */
    private String settlementType;

    /**
     * 商品编号
     */
    private String productCode;

    /**
     * 商品名称
     */
    private String productName;

    /**
     * 发票类型
     */
    private String invoiceType;

    /**
     * 核销金额
     */
    private Integer verifiedAmount;

    /**
     * 退款金额
     */
    private Integer refundAmount;


    /**
     * 手续费
     */
    private Integer processCost;

    /**
     * 实际支付金额
     */
    private Integer actualAmount;

    /**
     * 成本价
     */
    private Integer costPrice;

    /**
     * 税率
     */
    private BigDecimal taxRate;

    /**
     * 合同起始时间
     */
    private LocalDate contractStartDate;

    /**
     * 合同终止时间
     */
    private LocalDate contractEndDate;


    public Integer getVerifiedAmount() {
        if (null == verifiedAmount) {
            verifiedAmount = 0;
        }
        return verifiedAmount;
    }

    public Integer getRefundAmount() {
        if (null == refundAmount) {
            refundAmount = 0;
        }
        return refundAmount;
    }

    public Integer getProcessCost() {
        if (null == processCost) {
            processCost = 0;
        }
        return processCost;
    }

    public Integer getActualAmount() {
        if (null == actualAmount) {
            actualAmount = 0;
        }
        return actualAmount;
    }

    public Integer getCostPrice() {
        if (null == costPrice) {
            costPrice = 0;
        }
        return costPrice;
    }

    public BigDecimal getTaxRate() {
        if (null == taxRate) {
            taxRate = new BigDecimal(0);
        }
        return taxRate;
    }

}
